{% extends 'learing_logs/base.html' %}

{% load bootstrap3 %}

{% block header %}
{% endblock header %}

{% block content %}
    <form action="" method="post">
        {% csrf_token %}
        {% bootstrap_form form %}
        {% buttons %}
            {% if is_edit %}
                <button name="submit" class="btn btn-primary" >修改</button>
            {% else %}
                <button name="submit" class="btn btn-primary" >创建</button>
            {% endif %}
            
        {% endbuttons %}
    </form>
{% endblock content %}